<?php
/**
 * This file is form http://findcat.cn
 *
 * @link     https://findcat.cn
 * @email    1476982312@qq.com
 */
namespace Blog\Seeder\Admin\Test;

use Carbon\Carbon;
use App\Models\Website;
use Illuminate\Database\Seeder;

class WebsiteAnnouncementTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run()
    {
        $data = [
            [
                'admin_user_id' => '1',
                'title'         => '欢迎访问犯二青年博客',
                'content'       => 'Do not let what you cannot do interfere with what you can do.',
                'sort'          => 1,
                'status'        => 1,
                'created_at'    => Carbon::now(),
                'updated_at'    => Carbon::now(),
            ],
            [
                'admin_user_id' => '1',
                'title'         => '在这里可以看到前端技术，后端程序，网站内容管理系统等文章，还有我的程序人生！',
                'content'       => 'Do not let what you cannot do interfere with what you can do.',
                'sort'          => 2,
                'status'        => 1,
                'created_at'    => Carbon::now(),
                'updated_at'    => Carbon::now(),
            ],
            [
                'admin_user_id' => '1',
                'title'         => '在这个小工具中最多可以调用五条',
                'content'       => 'Do not let what you cannot do interfere with what you can do.',
                'sort'          => 3,
                'status'        => 1,
                'created_at'    => Carbon::now(),
                'updated_at'    => Carbon::now(),
            ],
            [
                'admin_user_id' => '1',
                'title'         => '测试公告1',
                'content'       => 'Do not let what you cannot do interfere with what you can do.',
                'sort'          => 4,
                'status'        => 1,
                'created_at'    => Carbon::now(),
                'updated_at'    => Carbon::now(),
            ],
            [
                'admin_user_id' => '1',
                'title'         => '测试公告12',
                'content'       => 'Do not let what you cannot do interfere with what you can do.',
                'sort'          => 5,
                'status'        => 1,
                'created_at'    => Carbon::now(),
                'updated_at'    => Carbon::now(),
            ],
            [
                'admin_user_id' => '1',
                'title'         => '测试公告13',
                'content'       => 'Do not let what you cannot do interfere with what you can do.',
                'sort'          => 6,
                'status'        => 1,
                'created_at'    => Carbon::now(),
                'updated_at'    => Carbon::now(),
            ],
        ];

        Website::query()->insert($data);
    }
}
